<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" value="按钮" onclick="f2()">
<script>
  function f1() {
    console.log('是的')
  }
  f1()

  function f2(age) {
    console.log(age)
  }
  f2(22);

  function f3() {
    return 100
  }
  let index=f3()
  console.log(index)

  function f4(x,y) {
    return x*y
  }
  let num = f4(2,3)
  console.log(num)

 let f5 = function (name,age) {
    console.log(name+':'+age)
 }
 f5("范冰冰",45)

  let f6 = new Function("name","age","console.log(name+':'+age)")
  f6("nana",40)
</script>
</body>
</html>